package com.qf.service.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/11/22 15:07
 */

@FeignClient(value = "sms-platform-cache")
public interface CacheService {

    /**
     * 获取key-hash
     * @param key
     * @return
     */
    @RequestMapping(value = "/cache/hmget/{key}", method = RequestMethod.GET)
    public Map hMGet(@PathVariable("key") String key);
}
